package com.premedsidekick;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;

public class AboutUs extends Activity {
	LayoutInflater inflater;
	TextView textview;
	LinearLayout layout;
	Integer[] headers = {
			R.id.about_us_header_textview_1,
			R.id.about_us_header_textview_2,
			R.id.about_us_header_textview_3,
	};
	Integer[] footers = {
			R.id.about_us_footer_textview_1,
			R.id.about_us_footer_textview_2,
			R.id.about_us_footer_textview_3
	};
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		inflater = LayoutInflater.from(this);
		setContentView(R.layout.about_us);
		ScrollView sv = (ScrollView)findViewById(R.id.about_us_scrollview);
		String[] titles = getResources().getStringArray(R.array.about_us_titles);
		String[] members = getResources().getStringArray(R.array.about_us_members);
		layout = (LinearLayout)findViewById(R.id.about_us_linearlayout);
		for (int i = 0; i < 3; i++) {
			textview = (TextView)findViewById(headers[i]);
			textview.setText(Html.fromHtml(titles[i]));
			textview = (TextView)findViewById(footers[i]);
			textview.setText(members[i]);
			textview.setTextSize(13);
		}
		textview = (TextView)findViewById(R.id.about_us_mission_statement);
		String mission = getResources().getString(R.string.about_us);
		textview.setText(Html.fromHtml(mission));
		//TextView textview = (TextView)findViewById(R.id.about_us_textview);
		
		
		
		//CharSequence sequence = Html.fromHtml(string);
		//textview.setText(sequence);
		/*
		textview.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(AboutUs.this, New_Home_Page.class);
				startActivity(intent);
			}
		});
		*/
	}

}
